package com.sm.honkon.ui.fragment.more

import android.os.Bundle
import androidx.navigation.NavAction
import androidx.navigation.NavOptions
import com.sm.honkon.R
import com.sm.honkon.app.base.BaseFragment
import com.sm.honkon.app.ext.goBackHome
import com.sm.honkon.app.ext.goMannger
import com.sm.honkon.databinding.FrgMainBinding
import com.sm.honkon.databinding.FrgMoreBinding
import com.sm.honkon.ui.model.MainViewModel
import me.hgj.jetpackmvvm.ext.nav
import me.hgj.jetpackmvvm.ext.navigateAction

class MoreFragment : BaseFragment<MainViewModel, FrgMoreBinding>() {
    override fun layoutId(): Int = R.layout.frg_more

    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.click = Click()
    }

    inner class Click{
        fun back(){
            nav().navigateUp()
        }
        fun home(){
            nav().goBackHome()
        }
        fun mannger(){
            nav().goMannger()
        }
        fun exit(){
            System.exit(0)
        }
        fun setting(){

        }
        fun shezhi(){
            nav().navigateAction(R.id.action_moreFragment_to_pinFragment)
        }
        fun peixun(){

        }
        fun caozuo(){

        }
    }
}